package com.zs.admin.validate.wisdbook;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import javax.validation.constraints.*;
import com.zs.common.validator.annotation.IDMust;

/**
 * 智书目录参数
 * @author SwAdmin
 */
@Data
@ApiModel("智书目录更新参数")
public class WisdbookDirUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @IDMust(message = "id参数必传且需大于0")
    @ApiModelProperty(value = "节点id")
    private Integer id;

    @ApiModelProperty(value = "父节点id")
    private Integer pid;

    @ApiModelProperty(value = "目录名称")
    private String text;

    @ApiModelProperty(value = "智书id")
    private Integer bookId;

    @ApiModelProperty(value = "页id集合")
    private String pageIds;

    @ApiModelProperty(value = "排序")
    private Integer sort;

}
